package com.yb.designpattern.creation.factory.method;

import com.yb.designpattern.creation.factory.Car;

public class Client {
	public static void main(String[] args) {
		CarFactory carFactory = new BenzFactory();
		Car car = carFactory.createCar("Benz");
		car.setName("Benz");
		car.drive();
	}
}
